package com.ojoin.trade.t0loan_core.web.service;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.web.service.BaseService;
import com.ojoin.trade.t0loan_core.web.domain.TbT0PosTranscationOfLoanTransanction;

/**
 * T+0贷款记录与pos机交易记录对照信息服务接口
 * @author guoting
 *
 */
public interface T0PosTranscationOfLoanTransanctionBaseService extends BaseService<TbT0PosTranscationOfLoanTransanction> {
	
	/**
	 * 新建九盈T+0贷款记录与pos机交易记录对照表记录(T0000012)
	 * @param t0loanTransLogId
	 * @param posTransLogId
	 * 
	 * 说明：
	 * 向tb_t0_pos_transcation_id_of_loan_transanction表插入一条记录，记录业务日志
	 * 
	 * @throws BusinessException
	 */
	public int insertT0PosTranscationOfLoanTransanction(int t0loanTransLogId, String posTransLogId) throws BusinessException;

	/**
	 * 批量插入商户指定日期的所有交易对照记录
	 * @param t0loanTransLogId
	 * @param joinuserid
	 * @param transdate
	 * @return
	 * @throws BusinessException
	 */
	public void insertIntoT0PosTranscationOfLoanTransanction(Integer t0loanTransLogId, Integer joinuserid, String transdate) throws BusinessException;

	/**
	 * 查询九盈T+0贷款记录中包含的pos机交易记录集合
	 * @param t0loanTransLogId
	 * 
	 * 说明：
	 * 查询tb_t0_pos_transcation_id_of_loan_transanction表中idOfTbT0LoanTransanctionLog字段为传入参数值的vo集合，记录业务日志
	 * 
	 * @throws BusinessException
	 */
	public Integer queryT0PosTranscationCountByLoanTransanctionId(int t0loanTransLogId) throws BusinessException;

	
}
